/**
 * Created by Administrator on 2015-07-07.
 */
var localeText_zh = {
    page: '页',
    more: '更多',
    to: '到',
    of: 'of',
    next: '下一页',
    last: '末页',
    first: '首页',
    previous: '前一页',
    loadingOoo: '加载中...',
    // for set filter
    selectAll: '全部',
    searchOoo: '输入查询值...',
    blanks: '空',
    // for number filter
    equals: '等于',
    notEqual:'不等于',
    notContains:'不包含',
    lessThan: '少于',
    greaterThan: '大于',
    applyFilter: '应用',
    filterOoo: '过滤中...',
    // for text filter
    contains: '包含',
    startsWith: '开始',
    endsWith: '结束',
    // the header of the default group column
    group: '组',
    // tool panel
    columns: '列',
    pivotedColumns: '统计列',
    pivotedColumnsEmptyMessage: '请将要统计的列拖曳到这里',
    valueColumns: '值列',
    valueColumnsEmptyMessage: '请将要计算的列拖曳到这里',
    noRowsToShow:"无数据显示"
}


function dbltable(tr){

    var target = $(tr).attr("target");
    if(target == 'sid_inHand' || target == 'sid_haveDone' || target=='sid_stageProgress'){
        navTab.openTab("stageDetailNavTab","/modules/project/stage/detail?STG001="+$(tr).attr("rel"),{title:"审查基本信息查看"});
    }else if(target == 'sid_projectStage' || target == 'sid_stageSummary'){
        navTab.openTab("add_projectstage","/modules/project/stage/edit/"+$(tr).attr("rel"),{title:"编辑项目审查阶段信息"});
    }else if(target == 'sid_queryBat'){
        navTab.openTab("query_agentApply","/modules/agent/agentApply/setResult/"+$(tr).attr("rel"),{title:"查看抽取详情"});
    }else if(target == 'sid_setResultBat'){
        navTab.openTab("setResult_agentApply","/modules/agent/agentApply/setResult/"+$(tr).attr("rel"),{title:"确定抽取结果"});
    }else if(target == 'sid_bidBat'){
        navTab.openTab("bid_agentApply","/modules/agent/agentApply/setResult/"+$(tr).attr("rel"),{title:"设置公开招标结果"});
    }else if(target == 'sid_auditApply'){
        navTab.openTab("edit_agentApply","/modules/agent/agentApply/edit/"+$(tr).attr("rel"),{title:"编辑抽取申请"});
    }else if(target == 'sid_auditBat'){
        navTab.openTab("audit_agentApply","/modules/agent/agentApply/auditDetail/"+$(tr).attr("rel"),{title:"审核中介抽取申请"});
    }else if(target == 'sid_extractBat'){
        navTab.openTab("extract_agentApply","/modules/agent/agentApply/extractDetail/"+$(tr).attr("rel"),{title:"准备中介抽取"});
    }else if(target == 'sid_agentApply'){
        navTab.openTab("edit_agentApply","/modules/agent/agentApply/edit/"+$(tr).attr("rel"),{title:"编辑抽取申请"});
    }else if(target == 'sid_applyLookUp'){
        chooseApply($(tr).attr("rel"));
    }else if(target == 'sid_agentService'){
        navTab.openTab("agentServiceHisListDlg","/modules/agent/agentServiceHis?EXS001="+$(tr).attr("rel"),{title:"考核情况"});
    }else if(target == 'sid_agentServiceHis'){
        $.pdialog.open("/modules/agent/agentServiceHis/edit/"+$(tr).attr("rel"),"edit_serviceHis","编辑考核记录",{width:900,height:500,mask:true});
    }else if(target == 'sid_period'){
        $.pdialog.open('/modules/project/period/edit?id='+$(tr).attr("rel")+'&rel=periodBox','edit_period',"编辑审核阶段信息",{width:'850',height:'380',mask:true});
    }else if(target == 'sid_unit'){
        $.pdialog.open("/modules/project/unit/edit/"+$(tr).attr("rel"), "edit_unit", "编辑单位信息", {mask:"true",width:850,height:550});
    }else if(target == 'sid_projectStageHis'){
        navTab.openTab("add_projectstage","/modules/project/stage/editHis/"+$(tr).attr("rel"),{title:"编辑项目审查阶段信息"});
    }else if(target == 'sid_agentLookUp'){
        $.bringBack({AGT001:$(tr).attr("rel"),AGT002:$(tr).attr("orgId"), AGT004:$(tr).attr("name")});
    }else if(target == 'sid_unitLookUp'){
        if($(tr).attr("name")=='无'){
            $.bringBack({UNT001:'', UNT004:''});
        }else{
            $.bringBack({UNT001:$(tr).attr("rel"), UNT004:$(tr).attr("name")});
        }
    }else if(target == 'sid_extractApply'){
        navTab.openTab("view_agentApply","/modules/agent/agentApply/view/"+$(tr).attr("rel"),{title:"申请详情"});
    }else if(target == 'sid_stageLookUp'){
        var obj = $.evalJSON($(tr).attr("bringBackObj"));
        chooseStage(obj);
    }else if(target == 'sid_todo'){
        navTab.openTab("todoNav",$(tr).attr("url"),{title:$(tr).attr("title")});
    }else if(target == 'sid_quarterPlan'){
        navTab.openTab("quarterPlanDetailNav","modules/project/stage/quarterPlanDetail/"+$(tr).attr("rel"),{title:$(tr).attr("title")});
    }else if(target == 'sid_orgLookUp'){
        $.bringBack({id:$(tr).attr("rel"), name:$(tr).attr("name")});
    }else if(target == 'sid_orgLookUpCallBack'){
        chooseOrg({id:$(tr).attr("rel"), name:$(tr).attr("name")});
    }else if(target == 'sid_resultLookUp'){//选择抽取中介
        chooseAgent($(tr).attr("rel"));
    }else if(target == 'sid_agent'){//中介列表双击行事件
        $.pdialog.open('/modules/agent/agent/edit/'+$(tr).attr("rel"),'edit_agent',"编辑中介基本信息",{width:'800',height:'400',mask:true});
    }else if(target == 'sid_costRate'){//费率设置双击行事件
        $.pdialog.open('/modules/agent/costRate/edit?id='+$(tr).attr("rel")+'&pId='+$(tr).attr("pId"),'edit_costRate',"编辑费率版本信息",{width:'800',height:'500',mask:true});
    }else if(target == 'sid_hisVersion'){//历史版本
        $.pdialog.open('/modules/agent/hisVersion/edit/'+$(tr).attr("rel"),'edit_hisVersion',"编辑费率版本信息",{width:'800',height:'500',mask:true});
    }
}